const proxy = require('http-proxy-middleware').createProxyMiddleware
console.log(proxy, 'proxy')
module.exports = function (app) {
  app.use(proxy('/api', {
    target: 'http://localhost:7001',
    secure: false,
    changeOrigin: true,
    pathRewrite: {
      "^/api": "/"
    }
  }))
}